package day02;

public class DataTypeDemo {
    public static void main(String[] args) {
        boolean t=true;
        boolean f=false;
        System.out.println(12+0);
        System.out.println('承'+0);
        System.out.println('碌'+0);
        System.out.println('t'+0);
        System.out.println('h'+0);
        System.out.println('e'+0);
        System.out.println('s'+0);
        System.out.println('h'+0);
        System.out.println('y'+0);
        char a='a';
        char a1='承';
        //char a2='aa';
        char a3=' ';
        //类型的转变
        int s=5;
        long c=s;
        int r= (int)c;
        int o=5;
        double m=5;
        System.out.println(m);
        long n=10000000000l;
        int q=(int) n;
        System.out.println(q);
        double l=25.987;
        int i=(int)l;
        System.out.println(i);
        byte a4=1;
        byte a9=6;
        byte b5=(byte)(a4+a9);
        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');
        System.out.println('2');
        int a7='我';
        System.out.println(a7);
        char b7=65;
        System.out.println(b7);










      /*  //3)double 浮点型 8个字节 大
        double a=25.678;
        float b=25.678f;
        double c=3.0,d=2.9;
        System.out.println(c-d);
        System.out.println('我'+0);
        System.out.println('姜'+0);
        System.out.println('承'+0);
        System.out.println('碌'+0);
        */






        /*
        //2)long 长整形 8个字节
        long a=25L;
        //long b=1000000000L;
        long d=365L*24*60*1000;
        System.out.println(d);
        long e=100000000*2*10L;
        System.out.println(e);
        long f=1000000000*3*10L;
        System.out.println(f);
        long g=1000000000L*3*10;
        System.out.println(g);
        */












        /*
        //1)int 整形 4个字节 -21亿到21亿
        int a =300;//350为整数直接量 默认为int类型
        */
    }
}
